using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartApplication.Domain.Entity
{
    /// <summary>
    /// 屠宰企业信息
    /// </summary>
    [Table("BusinessModel")]
    public class BusinessModel : BaseEntity
    {
        /// <summary>
        /// 企业名称
        /// </summary>
        [Required]
        [StringLength(200)]
        public string BusinessName { get; set; }

        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 公司地址
        /// </summary>
        [StringLength(500)]
        [Required]
        public string BusinessAdd { get; set; }

        /// <summary>
        /// 公司简介
        /// </summary>
        [StringLength(1000)]
        [Required]
        public string Introduction { get; set; }

        /// <summary>
        /// 公司照片
        /// </summary>
        [StringLength(500)]
        [Required]
        public string BusinessPic { get; set; }
    }
} 